package com.syy.spider.service;

import com.syy.spider.pojo.Picture;
import com.syy.spider.pojo.User;
import com.syy.spider.pojo.User_title;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;

public interface SpiderService {
    String getHtml(String name);

    Picture getImgsUrlAndDescription(String code);

    void downLoad(Picture pictures) throws IOException;

    List<Picture> getImgs(String username,String title);

    void insertPicInfo(Picture var);

    User_title selectUserTitle(String username, String spiderName);

    void insertTitle(String user, String spiderName);

    List<User_title> getUserTitle(String username);

    String getTitle(Integer id);

    Picture selectPictureById(int picId);

    int deleteFav(int id);

    List<Picture> selectPicturesByTitle(String username,String title);

    void deleteTitle(String username, String title);
}
